#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(int argc,char**argv)
{
	argv[1]="abc.txt";
	argv[2]="happy.txt";
	if(argc==3)
	{
		char *abc=argv[1];
		char *happy=argv[2];
		FILE *f1=fopen(abc,"r");
		if(f1==NULL)
		{
			printf("file not exist!");
			return -1;
		}
		FILE *f2=fopen(happy,"w");
		while(1)
		{
			char ch=fgetc(f1);
			if(feof(f1))
			    break;
			fputc(ch,f2);
			putchar(ch);
		}
	
	fclose(f1);
	fclose(f2);
    }
	return 0;
}
